#!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import socket

sk = socket.socket()
sk.connect(('127.0.0.1', 9000))
while True:
    time.sleep(2)
    sk.send('world'.encode('utf-8'))
    msg = sk.recv(1024).decode('utf-8')
    print(msg)